package com.chen10.gobang.common.constants;

public class WsEventConstants {
    public static final String INVITE_EVENT= "INVITE_EVENT"; //对战邀请事件
    public static final String GAME_MOVE_EVENT = "GAME_MOVE_EVENT"; //游戏落子事件
    public static final String GAME_MOVE_ERROR_EVENT = "GAME_MOVE_ERROR_EVENT"; // 游戏落子错误事件
    public static final String GAME_WIN_EVENT = "GAME_WIN_EVENT"; //游戏胜利事件
    public static final String GAME_DRAW_EVENT = "GAME_DRAW_EVENT"; // 游戏平局事件
    public static final String GAME_LOSE_EVENT = "GAME_LOSE_EVENT"; // 游戏失败事件
    public static final String NEXT_PLAYER_MOVE_EVENT = "NEXT_PLAYER_MOVE_EVENT"; // 下一个玩家落子事件
    public static final String FRIEND_REQUEST_EVENT = "FRIEND_REQUEST_EVENT"; //好友请求事件
    public static final String PLAYER_READY_EVENT = "PLAYER_READY_EVENT"; // 玩家准备
    public static final String PLAYER_CANCEL_READY_EVENT = "PLAYER_CANCEL_READY_EVENT"; // 玩家取消准备
    public static final String OPPONENT_DISCONNECTED_EVENT = "OPPONENT_DISCONNECTED_EVENT"; // 对方断开连接

    //需要更新显示用户状态的事件
    public static final String USER_LOGIN_EVENT = "USER_LOGIN_EVENT"; //用户登录事件
    public static final String USER_LOGOUT_EVENT = "USER_LOGOUT_EVENT"; //用户登出事件
    public static final String USER_CREATE_ROOM_EVENT = "USER_CREATE_ROOM_EVENT"; //用户创建房间
    public static final String USER_QUIT_ROOM_EVENT = "USER_QUIT_ROOM_EVENT";  // 用户退出房间事件
    public static final String ROOM_CLOSED_BY_OWNER_EVENT = "ROOM_CLOSED_BY_OWNER_EVENT"; // 房主关闭房间
    public static final String INVITE_ACCEPT_EVENT = "INVITE_ACCEPT_EVENT"; //对战邀请接受事件
    public static final String GAME_STARTED_EVENT = "GAME_STARTED_EVENT"; // 游戏开始
    public static final String USER_STATUS_UPDATE_EVENT = "USER_STATUS_UPDATE_EVENT"; // 用户状态更新事件
    public static final String MATCH_FIGHT_SUCCESS = "GAME_MATCH_SUCCESS"; // 匹配对战成功
}
